package com.sooncode.project.focusservice._.infrastructure;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@Data
@RefreshScope
public class MongoConfig {
    @Value("${mongodbEventSource.connection}")
    private String mongoConnection;

    @Value("${mongodbEventSource.port}")
    private int mongoPort;

    @Value("${mongodbEventSource.database}")
    private String mongoDatabase;
    @Value("${mongodbEventSource.username}")
    private String mongoUsername;
    @Value("${mongodbEventSource.password}")
    private String mongoPassword;
}
